package ManagedGenericIRPConstDefs;
/**
 * Generated from IDL enum "Signal".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class Signal
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _OK = 0;
	public static final Signal OK = new Signal(_OK);
	public static final int _FAILURE = 1;
	public static final Signal FAILURE = new Signal(_FAILURE);
	public static final int _PARTIALSUCCESS = 2;
	public static final Signal PARTIALSUCCESS = new Signal(_PARTIALSUCCESS);
	public int value()
	{
		return value;
	}
	public static Signal from_int(int value)
	{
		switch (value) {
			case _OK: return OK;
			case _FAILURE: return FAILURE;
			case _PARTIALSUCCESS: return PARTIALSUCCESS;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _OK: return "OK";
			case _FAILURE: return "FAILURE";
			case _PARTIALSUCCESS: return "PARTIALSUCCESS";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected Signal(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
